﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2006" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"
    xmlns:local="clr-namespace:FuzzyTaskList"
    x:Class="FuzzyTaskList.EditTaskItemUserControl">
    <UserControl.Resources>
        <local:DateFormattingConverter x:Key="DateFormattingConverter"/>
    </UserControl.Resources>
    <Grid x:Name="gridContent" Width="Auto" Height="Auto">
		<Grid.RowDefinitions>
			<RowDefinition Height="*" />
			<RowDefinition Height="*"/>
			<RowDefinition Height="*"/>
			<RowDefinition Height="25"/>
		</Grid.RowDefinitions>
		<Border Margin="0,0,0,0" Grid.RowSpan="4"/>
		<TextBlock  FontSize="20" Text="Edit Task" Grid.Row="0" />
	
        <StackPanel Orientation="Horizontal" Grid.Row="1">
            <StackPanel  x:Name="stkTaskName">
			    <Label Content="Task Name:" x:Name="lblTaskName" />
			    <TextBox Text="{Binding Path=TaskName}" x:Name="txtTaskName" Width="300" />
		    </StackPanel>
            <StackPanel x:Name="stkMinDays" >
        		<Label Content="Min Days:"/>
		    	<TextBox Text="{Binding Path=MinDays}"  x:Name="txtMinDays" d:LayoutOverrides="Height" />
		    </StackPanel>
    	    <StackPanel x:Name="stkMaxDays" >
			    <Label  Content="Max Days:"/>
			    <TextBox Text="{Binding Path=MaxDays}"  x:Name="txtMaxDays" />
		    </StackPanel>
       </StackPanel>

		<StackPanel Grid.Row="2" Orientation="Horizontal">
            <StackPanel x:Name="stkActive" >
			    <Label  Content="Active"/>
			    <CheckBox IsChecked="{Binding Path=IsActive}"  Content="Active"/>
    		</StackPanel>    
            <StackPanel>
                <Label Content="Start Date" />
	    		<TextBox Text="{Binding Path=StartDate, Converter={StaticResource DateFormattingConverter}}"  x:Name="txtStartDate" />
            </StackPanel>
        </StackPanel>
        
   		<!--<StackPanel x:Name="stkCmds" Grid.Row="3" Orientation="Horizontal">
			<Button Content="Ok"  />
			<Button Content="Cancel" />
		</StackPanel>-->
        
        
		
	</Grid>
</UserControl>
